package com.change.study.data.service;

import java.util.HashMap;
import java.util.Map;

public class DataUtils {

	private static Map<String,Integer> scores;
	static{
		scores=new HashMap<String, Integer>();
		scores.put("apost", 10);
		scores.put("commentpost", 10);

		
	}
	public static Integer getScore(String key){
		Integer result=null;
		result=scores.get(key);
		if(result==null){
			result=0;
		}
		return result;
		
	}
	public static Integer putScore(String key,Integer score){
		Integer result=score;
		scores.put(key, score);
		return result;
		
	}
}
